package com.he.DesignPatterns.adapter.ObjectAdapter;

/**
 * @description: TODO
 * @Author: HCL
 * @Date: 2024/8/26 16:37
 */
public class Computer {

    //从SD卡中读取数据
    public String readSD(SDCard sdCard){
        if (sdCard == null){
            throw new NullPointerException("SDCard不能为空");
        }
        return sdCard.readSD();
    }
}
